<?php
echo $this->Session->flash();
echo $form->create('RequirementFault');
echo $form->hidden("RequirementFault.id");
echo $form->input("RequirementFault.tipo", array('label' => 'tipo', 'options' => array(1 => 'Cumple', 2 => 'No Cumple', 3 => 'Subsanable'), 'empty' => 'Seleccione opción'));
echo $form->hidden("RequirementFault.requirement_id");
echo $form->input("RequirementFault.nombre");
echo $ajax->submit('Guardar', array('url' => array('controller' => 'RequirementFaults', 'action' => 'edit'), 'update' => 'content', 'complete' => 'cargar()', 'loading' => "$('#loader').show();", 'loaded' => "$('#loader').hide();cargar();"));
echo $form->end();
?>
<div id="loader" style="display:none;">
    <?php echo $html->image('loading.gif', array('alt' => 'CakePHP')) ?>
</div>
